package com.fankui.serviceedu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fankui.serviceedu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fankui.serviceedu.entity.frontvo.CourseDetailVo;
import com.fankui.serviceedu.entity.frontvo.CourseFrontVo;
import com.fankui.serviceedu.entity.vo.CoursePublishVo;
import com.fankui.serviceedu.entity.vo.CourseVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author 范奎
 * @since 2023-11-25
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourse(CourseVo courseVo);

    CourseVo getCourseById(String courseId);

    boolean updateCourse(CourseVo courseVo);

    CoursePublishVo getCoursePublishById(String courseId);

    boolean removeCourseById(String courseId);

    Map<String, Object> getCourseFrontList(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);

    CourseDetailVo getFrontCourse(String courseId);
}
